package com.tjl.foodapp;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Collect {
    int collect_id;
    int user_id;
    String username;
    int shop_id;
    String shopname;
    int food_id;
    String foodname;
    Date collect_date;
    int flag;
    String collect_date_Str;
    static SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public int getCollect_id() {
		return collect_id;
	}
	public void setCollect_id(int collect_id) {
		this.collect_id = collect_id;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public int getShop_id() {
		return shop_id;
	}
	public void setShop_id(int shop_id) {
		this.shop_id = shop_id;
	}
	public String getShopname() {
		return shopname;
	}
	public void setShopname(String shopname) {
		this.shopname = shopname;
	}
	public int getFood_id() {
		return food_id;
	}
	public void setFood_id(int food_id) {
		this.food_id = food_id;
	}
	public String getFoodname() {
		return foodname;
	}
	public void setFoodname(String foodname) {
		this.foodname = foodname;
	}
	public Date getCollect_date() {
		return collect_date;
	}
	public void setCollect_date(Date collect_date) {
		this.collect_date = collect_date;
	}
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	
	public String getCollect_date_Str() {
		return collect_date_Str;
	}
	public void setCollect_date_Str(String collect_date_Str) {
		this.collect_date_Str = collect_date_Str;
	}
	public Collect(int collect_id, int user_id, String username, int shop_id, String shopname, int food_id,
			String foodname, Date collect_date, int flag) {
		super();
		this.collect_id = collect_id;
		this.user_id = user_id;
		this.username = username;
		this.shop_id = shop_id;
		this.shopname = shopname;
		this.food_id = food_id;
		this.foodname = foodname;
		this.collect_date = collect_date;
		this.flag = flag;
		this.collect_date_Str = format.format(collect_date);
	}
	public Collect() {
		super();
		// TODO Auto-generated constructor stub
	}
    
}
